package com.wangijun.yuan.admin.system.model.em;


import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 功能描述: 通用状态
 *
 * @author wlf 2024/8/21 9:52
 */
@Getter
public enum EnableStatus {
    enable("1", "启用"),
    disable("2", "禁用"),
    ;

    EnableStatus(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    @EnumValue
    @JsonValue // 标记响应json值
    private final String code;
    private final String desc;
}
